package com.ruoyi.common.utils;

/**
 * 数据data
 *
 * @author ruoyi
 */
public class RFactory {

	private static final String KEY_DATA = "data";

	public static R generateR(Object result){
		return RFactory.newInstance(result);
	}

	private static R newInstance(Object result) {
		R r = new R();
		r.put(KEY_DATA,result);
		return r;
	}

}
